<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/includes/tags.jsp" %>
<div class="center_text">

    <h2><s:text name="ui.latest.posts"/></h2>

    <s:bean name="org.komarichin.services.BloggerService" var="blogService"/>
    <s:iterator value="#blogService.getLatestPost()" var="n">
        <div class="icon_img_tab">
            <img src="/img/blog.png" class="img_left picto_img" alt="${title}"/>
            <s:url var="postLink" namespace="/blogger" action="view">
                <s:param name="post.id" value="id"/>
            </s:url>
            <b><s:property value="title"/></b><br/>
            <k:shortContent content="${content}"/>&nbsp;<a href="${postLink}" title='<s:text name="ui.more"/>'><s:text
                name="ui.more"/></a>
        </div>
    </s:iterator>
    <s:url namespace="/blogger" action="archive" var="blogArchive"/>

    <div class="icon_img_tab">
        <a href="${blogArchive}" title='<s:text name="ui.archive"/>'><s:text name="ui.archive"/></a>
    </div>
</div>

<%@include file="/WEB-INF/layout/aboutUs.jsp" %>